package top.tangyh.lamp.care.vo.save;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@Schema(description="评估明细记录")
public class PgRecordVo {
    @Schema(description ="评估记录id")
    private Long id;

    @Schema(description ="排班id,A|P|N")
//    @NotNull(message = "排班id不能为空")
    private Integer pbId;

    @Schema(description ="评估评分id",requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "评估评分idb不能为空")
    private Long pgId;

    @Schema(description ="评估项名称",requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "评估项名称不能为空")
    private String pgName;

    @Schema(description ="病人识别号",requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "病人识别号不能为空")
    private String patientIdent;

    @Schema(description ="住院号码",requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "住院号码不能为空")
    private String hospitalNumber;

    @Schema(description ="评分时间 YYYY-MM-dd HH:mm:ss")
    @NotNull(message = "评分时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gradeTime;

    @Schema(description ="时间轴对应的时间 YYYY-MM-dd HH:mm:ss")
    @NotNull(message = "时间轴对应的时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date mappedTime;

    @Schema(description ="展示字段")
    private String showValue;

    @Schema(description ="评分记录明细")
    private List<PgRecordDetailVo> pgRecordDetailVos;



    @Schema(description ="展示字段")
    private String pgCode;



    @Schema(description ="评估类型 NRS CPOT")
    private String pgType;

    @Schema(description = "床位号")
    private String bedNumber;
    @Schema(description = "科室")
    private String department;
}